package com.hongye.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hongye.common.utils.PageUtils;
import com.hongye.common.utils.Query;

import com.hongye.house.dao.PublishHomeDao;
import com.hongye.house.entity.PublishHomeEntity;
import com.hongye.house.service.PublishHomeService;


@Service("publishHomeService")
public class PublishHomeServiceImpl extends ServiceImpl<PublishHomeDao, PublishHomeEntity> implements PublishHomeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PublishHomeEntity> page = this.page(
                new Query<PublishHomeEntity>().getPage(params),
                new QueryWrapper<PublishHomeEntity>()
        );

        return new PageUtils(page);
    }

}